<template>
	<view class="filter-item">
		<view class="label">{{title}}</view>
		<view class="content_box">
			<input @input="change" :value="iptValue" :placeholder="placeholder" class="leng_ipt" />
		</view>
	</view>
</template>

<script>
	export default {
		name: "l-filter-item",
		props: {
			title: {
				type: String,
				default: '标题'
			},
			value: {
				type: String,
				default: ''
			},
			placeholder: {
				type: String,
				default: '请输入'
			},
		},
		computed: {
			iptValue(){
				return this.value
			}
		},
		data() {
			return {

			};
		},
		methods: {
			change(e){
				this.$emit('input',e.detail.value)
			}
		}
	}
</script>

<style lang="scss" scoped>
	.filter-item {
		margin-bottom: 30rpx;

		.label {
			font-weight: 500;
			font-size: 28rpx;
			color: #333333;
		}

		.content_box {
			margin-top: 20rpx;

			.leng_ipt {
				height: 60rpx;
				background: #F5F6FA;
				font-size: 24rpx;
				padding-left: 24rpx;
			}
		}

	}
</style>
